package com.woniu.model.mallSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lzj
 * @since 2023-10-19
 */
@Getter
@Setter
  @TableName("t_order_item")
@ApiModel(value = "OrderItem对象", description = "")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("订单项目明细表id")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("商品id")
      private Long commodityId;

      @ApiModelProperty("商品名称")
      private String commodityName;

      @ApiModelProperty("商品价格")
      private BigDecimal price;

      @ApiModelProperty("购买数量")
      private Integer buyCount;

      @ApiModelProperty("小计")
      private BigDecimal sumprice;

      @ApiModelProperty("订单id")
      private Long orderId;

      @ApiModelProperty("下单时间")
      private Date createTime;

      @ApiModelProperty("订单状态")
      private Integer orderStatus;


}
